<?php
class ProductDesc extends Model {
	public function addProductDesc($data) {
		return $this->dbo->insertTableRow('product_description',$data);
	}
	public function updateProductDescById($id, $items){
		return $this->dbo->updateTableRow('product_description', $id, $items);
	}
	public function delProductDescByPid($product_id){
		return $this->dbo->query("DELETE FROM product_description WHERE product_id = '".(int)$product_id."'");
	}
	public function getProductDescInPIds($p_ids){
		$result = $this->dbo->query("SELECT * FROM product_description WHERE product_id IN ($p_ids)");
		return $result->rows;
	}
}
?>